home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 10 - 1994 / 10.12 Dec 94 / ThreadedSprocket / ExperimentalStuff / MailableDocWindow.cp next >
Encoding:
Text File  |  1994-08-26  |  1.0 KB  |  51 lines  |  [TEXT/MMCC]

  1. /*
  2.     File:        MailableDocWindow.cp
  3.  
  4.     Contains:    A wacky multiple inheritance experiment with AOCE
  5.                 
  6.     Written by: Steve & Dave Falkenburg
  7.     
  8.     Copyright:    © 1993-94 by Dave Falkenburg, all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.     
  12.          <2>     8/26/94    DRF        Added GetPerfectWindowSize, with call to
  13.                                     AdjustPerfectWindowSizeForMailer.
  14.  
  15.     To Do:        Just about everything
  16.     
  17.  */
  18.  
  19. #include "MailableDocWindow.h"
  20. #include "AppLib.h"
  21.  
  22. TMailableDocWindow::TMailableDocWindow()
  23.     {
  24.     this->CreateWindow();        //    must be a normal window
  25.     }
  26.  
  27.  
  28. WindowPtr
  29. TMailableDocWindow::MakeNewWindow(WindowPtr behindWindow)
  30.     {
  31.     WindowPtr    aWindow = GetNewColorOrBlackAndWhiteWindow(1027,nil,behindWindow);
  32.  
  33.     return aWindow;
  34.     }
  35.  
  36.  
  37. void
  38. TMailableDocWindow::GetPerfectWindowSize(Rect * perfectSize)
  39.     {
  40.     TWindow::GetPerfectWindowSize(perfectSize);
  41.     AdjustPerfectWindowSizeForMailer(perfectSize);
  42.     }
  43.  
  44.  
  45. void
  46. TMailableDocWindow::DrawContents(void)
  47.     {
  48.     //    drawing will be clipped to the content so we can go ahead and use the portRect
  49.     FillRect(&fWindow->portRect,&qd.ltGray);
  50.     }
  51.